package _嗖嗖移动大厅2_0.A3_0;

import java.io.Serializable;

public class _taocan implements Serializable {

    private String taocan;//套餐类型
    private int shichang;//通话时长
    private int tiao;//信息
    private int feiyong;//费用
    private double liuliang;//流量

    public _taocan() {
    }


    public _taocan(String taocan, int shichang, int tiao, int feiyong, double liuliang) {
        this.taocan=taocan;
        this.shichang = shichang;
        this.tiao = tiao;
        this.feiyong = feiyong;
        this.liuliang = liuliang;
    }

    public String getTaocan() {
        return taocan;
    }

    public void setTaocan(String taocan) {
        this.taocan = taocan;
    }

    public double getLiuliang() {
        return liuliang;
    }

    public void setLiuliang(double liuliang) {
        this.liuliang = liuliang;
    }

    public int getShichang() {
        return shichang;
    }

    public void setShichang(int shichang) {
        this.shichang = shichang;
    }

    public int getTiao() {
        return tiao;
    }

    public void setTiao(int tiao) {
        this.tiao = tiao;
    }

    public int getFeiyong() {
        return feiyong;
    }

    public void setFeiyong(int feiyong) {
        this.feiyong = feiyong;
    }
    public String _1(){
        if (taocan.equals("话痨套餐")) {
            return  "通话时长:" + shichang + "\t" + "短信条数:" + tiao ;
        }else if (taocan.equals("网虫套餐")){
            return "流量:"+liuliang;
        }else{
            return "通话时长"+shichang+"\t短信条数:"+tiao+"\t上网流量:"+liuliang+"/月";
        }
    }
}
